package cn.kgc.client;

import cn.kgc.base.vo.OrderItemVo;
import cn.kgc.commons.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>添加描述信息</p>
 *
 * @author 卢传琪
 */
@Component
@Slf4j
public class CartFeignClientImpl implements CartFeignClient {
    @Override
    public Result<List<OrderItemVo>> getOrderItemVo(@RequestParam(name = "memberId") long memberId) {
        log.error("获得用户:{},对应的购物车中选中的商品信息失败,服务接口降级",memberId);
        return Result.error(null,"http://mall-oms/oms/OrderItem/getOrderItemVo", HttpStatus.OK.value(),"获得用户购物车失败，服务接口降级");
    }
}

